import { defineStore } from "pinia";
export const useTemporaryStore = defineStore("temporary", {
  state: () => {
    return {
      product: {}, // 产品信息
      commodity: {}, // 商品信息
      certificate: {}, // 合格证书
      replenish: {}, // 补货信息
      dingHeReplenish: {}, // 钉盒补货
      guBanZuReplenish: {},
    };
  },
  actions: {
    setProduct(data) {
      this.product = data;
    },
    setCommodity(data) {
      this.commodity = data;
    },
    setReplenish(data) {
      this.replenish = data;
    },
    setCertificate(data) {
      this.certificate = data;
    },
    setDingHeReplenish(data) {
      this.dingHeReplenish = data;
    },
    setGuBanZuReplenish(data) {
      this.guBanZuReplenish = data;
    },
  },
});
